﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search_info.aspx.cs" Inherits="search_info" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>信息查询</title>
    <style>
        .wellcome{
            width:103%;
            height:80px;
            font-style:italic;
            text-align:center;
            margin:-10px -5px;
            border:2px solid transparent;
            background-color:rgba(0, 255, 255, 0.54);
        }
        a{
            text-decoration:none;
        }
        .main{
            width:600px;
            margin:20px auto;
            font-style:normal;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="wellcome"> 
            <h1>学生选课系统</h1>
            <div class="main">
                <br />
                <br />
             <asp:LinkButton ID="LinkButton4" runat="server" BackColor="#CCCCCC" BorderColor="Silver" BorderStyle="Outset" Font-Size="Larger" Width="90px" PostBackUrl="~/Main.aspx">首页</asp:LinkButton>
            &nbsp;&nbsp; &nbsp;
            <asp:LinkButton ID="LinkButton1" runat="server" BackColor="#CCCCCC" BorderColor="Silver" BorderStyle="Outset" Font-Size="Larger" OnClick="LinkButton1_Click2">查询学生信息</asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="LinkButton2" runat="server" BackColor="#CCCCCC" BorderColor="Silver" BorderStyle="Outset" Font-Size="Larger" OnClick="LinkButton2_Click">查询老师信息</asp:LinkButton>
             &nbsp;&nbsp; &nbsp;
            <asp:LinkButton ID="LinkButton3" runat="server" BackColor="#CCCCCC" BorderColor="Silver" BorderStyle="Outset" Font-Size="Larger" OnClick="LinkButton3_Click1">查询课程信息</asp:LinkButton>
            <br />
            <br />&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label1" runat="server" Text="学号/职工号/课程号:"></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click1" style="height: 27px" />
            <br />
            <br />
            </div>
            <br />
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Center">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="sno" HeaderText="学号" />
                    <asp:BoundField DataField="sname" HeaderText="姓名" />
                    <asp:BoundField DataField="ssex" HeaderText="性别" />
                    <asp:BoundField DataField="sclass" HeaderText="班级" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Center">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="tno" HeaderText="职工号" />
                    <asp:BoundField DataField="tname" HeaderText="姓名" />
                    <asp:BoundField DataField="tsex" HeaderText="性别" />
                    <asp:BoundField DataField="tphone" HeaderText="电话" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView3_SelectedIndexChanged" CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Center">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="cno" HeaderText="课程号" />
                    <asp:BoundField DataField="cname" HeaderText="课程名" />
                    <asp:BoundField DataField="time" HeaderText="上课时间" />
                    <asp:BoundField DataField="credit" HeaderText="学分" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>
